#include <iostream>
#include <string>
#include <vector>
using namespace std;

struct student
{
    string name;
    string no;
};

void input(string &Department, string &Class, vector<student> &allStudent)
{
    cout<<"Department:";
    cin>>Department;
    cout<<"Class:";
    cin>>Class;

    string name;
    string no;
    int number;
    cout<<"The number of student:";
    cin>>number;
    for(int i=0;i<number;i++)
    {
        cout<<"Student name:";
        cin>>name;
        cout<<"Student ID:";
        cin>>no;
        allStudent.push_back(student{name,no});
    }
}

void output(string Department, string Class)
{
    cout<<"Department:"<<Department<<endl;
    cout<<"Class:"<<Class<<endl;
}

void output(vector<student> allStudent)
{
    for(student i : allStudent)
    {
        cout<<"Student name:"<<i.name<<endl;
        cout<<"Student ID:"<<i.no<<endl;
    }
}

int main()
{
    string Department;
    string Class;
    vector<student> allStudent;
    input(Department,Class,allStudent);
    output(Department,Class);
    output(allStudent);
}
